package com.yinhai.msg.email.entity;

import java.util.Date;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 邮箱配置表(MsgEmail)实体类
 *
 * @author makejava
 * @since 2019-03-14 10:25:29
 */
public class MsgEmailPo implements Serializable {
    private static final long serialVersionUID = 523951292321070843L;
    //主键
    private String id;
    //邮箱账号
    private String emailaddress;
    //邮箱密码
    private String password;
    //发送主机ip
    private String sendhost;
    //发送端口
    private Integer sendport;
    //是否使用SSL协议发送
    private String sendssl;
    //是否使用TLS协议发送
    private String sendtls;
    //超时时间
    private Integer timeout;
    //邮件主题前缀
    private String prefix;
    //创建人
    private String createuser;
    //创建时间
    private Date createtime;
    //更新时间
    private Date updatetime;
    //是否为默认邮箱
    private String defaultemail;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEmailaddress() {
        return emailaddress;
    }

    public void setEmailaddress(String emailaddress) {
        this.emailaddress = emailaddress;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSendhost() {
        return sendhost;
    }

    public void setSendhost(String sendhost) {
        this.sendhost = sendhost;
    }

    public Integer getSendport() {
        return sendport;
    }

    public void setSendport(Integer sendport) {
        this.sendport = sendport;
    }

    public String getSendssl() {
        return sendssl;
    }

    public void setSendssl(String sendssl) {
        this.sendssl = sendssl;
    }

    public String getSendtls() {
        return sendtls;
    }

    public void setSendtls(String sendtls) {
        this.sendtls = sendtls;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
    public String getDefaultemail() {
        return defaultemail;
    }

    public void setDefaultemail(String defaultemail) {
        this.defaultemail = defaultemail;
    }

    public Map toMap() {
        Map map = new HashMap();
        map.put("id", id);
        map.put("emailaddress", emailaddress);
        map.put("password", password);
        map.put("sendhost", sendhost);
        map.put("sendport", sendport);
        map.put("sendssl", sendssl);
        map.put("sendtls", sendtls);
        map.put("timeout", timeout);
        map.put("prefix", prefix);
        map.put("createuser", createuser);
        map.put("createtime", createtime);
        map.put("updatetime", updatetime);
        map.put("defaultemail", defaultemail);
        return map;
    }

    @Override
    public String toString() {
        return "MsgEmail{" +
                ",id ='" + id + '\'' +
                ",emailaddress ='" + emailaddress + '\'' +
                ",password ='" + password + '\'' +
                ",sendhost ='" + sendhost + '\'' +
                ",sendport ='" + sendport + '\'' +
                ",sendssl ='" + sendssl + '\'' +
                ",sendtls ='" + sendtls + '\'' +
                ",timeout ='" + timeout + '\'' +
                ",prefix ='" + prefix + '\'' +
                ",createuser ='" + createuser + '\'' +
                ",createtime ='" + createtime + '\'' +
                ",updatetime ='" + updatetime + '\'' +
                ",defaultemail ='"+defaultemail+'\''+
                '}';
    }

}
